<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>抽奖管理后台</title>

<style>
body{background:#F4F4FF; font-size:14px; margin:auto}
.divScroll{     OVERFLOW:auto;
        scrollbar-face-color: #FFFFFF;
        scrollbar-shadow-color: #D2E5F4;
        scrollbar-highlight-color: #D2E5F4;
        scrollbar-3dlight-color: #FFFFFF;
        scrollbar-darkshadow-color: #FFFFFF;
        scrollbar-track-color: #FFFFFF; 
      scrollbar-arrow-color: #D2E5F4;
	  }
</style>
<script type="text/javascript">
	function openwin(url)
	{
		window.location=''+url+'';
	}
</script>
</head>

<body topmargin="0">
<table width="1000px" border="0" cellpadding="0" bgcolor="#F4F4FF">
  <tr>
    <td width="235" height="37">&nbsp;</td>
    <td width="759">&nbsp;</td>
  </tr>
  <tr>
    <td height="30">&nbsp;</td>
    <td>
        <input type="button" value="添加奖品"  onclick="window.location='<?php echo base_url('adminroot/product/addproduct');?>'"/>
    </td>
  </tr>
  <tr>
    <td height="485" align="center" valign="top">
<?php require_once 'left.php';?>
    </td>
    <td valign="top" align="center">
	<div align="center" style="width: 90%px; height: 500px; background:#FFFFFF" class="divScroll">
		 <table width="100%" border="0" cellpadding="0">
		  <?php foreach($list as $key => $value){ ?>
          <tr onMouseMove="javascript:this.bgColor='#FCFDEE';"
		onMouseOut="javascript:this.bgColor='#FFFFFF';">
            <td width="100%">
           <table width="100%" border="0" cellpadding="0">
          <tr>
            <td width="131" height="22"><font color="#FF0000">奖品名称:</font></td>
            <td width="833" align="left"><?=$value['productname']?></td>
            <td width="259" rowspan="4">
                <input type="button" name="button" id="button" value="编辑" onclick="window.location='<?php echo site_url('adminroot/product/edit_product/id/'.$value['id']);?>'"/>
                 <input type="button" name="button" id="button" value="删除" onclick="window.location='<?php echo site_url('adminroot/product/del_product/id/'.$value['id']);?>'"/>            
                 </td>
          </tr>
          <tr>
            <td height="22"><font color="#FF0000">奖品详情:</font></td>
            <td align="left"><?=$value['content']?></td>
            </tr>
          <tr>
            <td height="24"><font color="#FF0000">奖品属性:</font></td>
            <td align="left"><?=getproducttype($value['ptype'])?></td>
            </tr>
          <tr>
            <td height="25"><font color="#FF0000">奖品金额:</font></td>
            <td align="left"><?=intval($value['pprice'])?></td>
            </tr>
           <tr>
            <td height="25"></td>
            <td align="left"></td>
            <td>&nbsp;</td>
          </tr>
        </table>
            </td>
          </tr>
          <?php } ?>          

                    

                    
        </table>
	<div>
    
    </td>
  </tr>
</table>
</body>
</html>
